package com.spatio.serving.basic.service.template.common.dto.dify;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * @Description
 * @Author GuoPengfei
 * @Date 2024/5/22 15:24
 */
@Data
public class Usage {

    @JsonProperty("prompt_tokens")
    private int promptTokens;

    @JsonProperty("prompt_unit_price")
    private String promptUnitPrice;

    @JsonProperty("prompt_price_unit")
    private String promptPriceUnit;

    @JsonProperty("prompt_price")
    private String promptPrice;

    @JsonProperty("completion_tokens")
    private int completionTokens;

    @JsonProperty("completion_unit_price")
    private String completionUnitPrice;

    @JsonProperty("completion_price_unit")
    private String completionPriceUnit;

    @JsonProperty("completion_price")
    private String completionPrice;

    @JsonProperty("total_tokens")
    private int totalTokens;

    @JsonProperty("total_price")
    private String totalPrice;

    @JsonProperty("currency")
    private String currency;

    @JsonProperty("latency")
    private double latency;
}